﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="CSTWidget.ascx.cs" Inherits="CS310_TWidget.CSTWidget" %>
<div>
    <asp:Panel ID="pnlPlaceholder" runat="server" Height="226" Width="247" 
        ScrollBars="Auto" BorderStyle="Solid" BorderWidth="1px">
        <asp:Label ID="lblTitle" runat="server" Text="Twitter"></asp:Label>
        <asp:ListView ID="LstViewTimeLine" runat="server">
        <ItemTemplate>
                <div class="tweet">
                    <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("User.ProfileImageLocation") %>' />
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/user.aspx?screenname=" + Eval("User.ScreenName") %>'
                        Text='<%# "@" + Eval("User.ScreenName") %>' />
                    at
                    <asp:Literal ID="Literal1" runat="server" Text='<%# Eval("CreatedDate") %>' />
                    <br />
                    <asp:Literal ID="Literal2" runat="server" Text='<%# ((Twitterizer.TwitterStatus)Container.DataItem).LinkifiedText() %>' />
                </div>
            </ItemTemplate>
        </asp:ListView>
        <asp:Label ID="lblStatus" runat="server" Text=""></asp:Label>
    </asp:Panel>
</div>